package com.ctshk.rpc.guide.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.ctshk.common.model.BaseEntity;
import com.ctshk.rpc.guide.req.FileReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 导领证件
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-02-25
 */
@Data
@TableName(value = "t_guide_collar_certificates",autoResultMap = true)
@ApiModel(value="GuideCollarCertificates对象", description="导领证件")
public class GuideCollarCertificates implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "导领id")
    private Long guideCollarId;

    @ApiModelProperty(value = "证件类型")
    private Long certificatesTypeId;

    @ApiModelProperty(value = "证件名称")
    private String certificatesTypeName;

    @ApiModelProperty(value = "证件号码")
    private String certificatesNumber;

    @ApiModelProperty(value = "有效时间")
    private LocalDate effectiveTime;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @ApiModelProperty(value = "证件url地址")
    private FileReq certificatesUrl;

    @ApiModelProperty(value = "签发地区id")
    private Long areaId;

    @ApiModelProperty(value = "签发地区名称")
    private String areaName;


}
